﻿@{
    var books = ViewData.Model;

    <table>
    <thead>
        <h4>Favourite books</h4>
        <th>ISBN</th>
        <th>Name</th>
        <th>Author</th>
    </thead>
    @foreach (var book in books)
    {
        <tr>
            <td>@book.Book.ISBN</td>
            <td>@book.Book.Name</td>
            <td>@book.Book.Author</td>
        </tr>    
    }

    </table>
  }
